package com.dstz.demo.core.manager.impl;

import com.dstz.base.manager.impl.BaseManager;
import com.dstz.demo.core.dao.FeedbackDao;
import com.dstz.demo.core.manager.FeedbackManager;
import com.dstz.demo.core.model.Feedback;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * 反馈表 Manager处理实现类
 * @author aschs
 * @email aschs@qq.com
 * @time 2020-02-21 16:12:02
 */
@Service("feedbackManager")
public class FeedbackManagerImpl extends BaseManager<String, Feedback> implements FeedbackManager {

	@Resource
	private FeedbackDao feedbackDao;

	@Override
	public List<Feedback> findByUserId(Integer userId) {
		List<Feedback> feedbacks = feedbackDao.findByUserId(userId);
		return feedbacks;
	}
}
